package org.lionsoul.websnail.listener;

import org.lionsoul.websnail.Spider;

/**
 * spider listener
 *
 * @author chenxin, yangjian
 */
public interface SpiderListener {
    // spider started
    public void onStartup(Spider spider);

    // spider pause
    public void onPause(Spider spider);

    // spider resume
    public void onResume(Spider spider);

    // all the task were finished
    public void onFinish(Spider spider);

    // spider shutdown
    public void onShutdown(Spider spider);
}
